package com.iyoudoock.citymine.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Kvin on 2017/6/6.
 */
public class DistrictBean implements Parcelable {
    /**
     * id : 25
     * province : 天津市
     * city : 天津市
     * district : 南开区
     * villageName : 奥城商业广场
     * latitude : 39.083381
     * longitude : 117.176531
     * sort : 0
     * addTime : 2016-04-10 17:07:41
     */

    private int id;
    private String province;
    private String city;
    private String district;
    private String villageName;
    private double latitude;
    private double longitude;
    private int sort;
    private String addTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.province);
        dest.writeString(this.city);
        dest.writeString(this.district);
        dest.writeString(this.villageName);
        dest.writeDouble(this.latitude);
        dest.writeDouble(this.longitude);
        dest.writeInt(this.sort);
        dest.writeString(this.addTime);
    }

    public DistrictBean() {
    }

    protected DistrictBean(Parcel in) {
        this.id = in.readInt();
        this.province = in.readString();
        this.city = in.readString();
        this.district = in.readString();
        this.villageName = in.readString();
        this.latitude = in.readDouble();
        this.longitude = in.readDouble();
        this.sort = in.readInt();
        this.addTime = in.readString();
    }

    public static final Parcelable.Creator<DistrictBean> CREATOR = new Parcelable.Creator<DistrictBean>() {
        @Override
        public DistrictBean createFromParcel(Parcel source) {
            return new DistrictBean(source);
        }

        @Override
        public DistrictBean[] newArray(int size) {
            return new DistrictBean[size];
        }
    };
}
